package com.intellagric.agriecom.module.agriecom_produce_comment;

import com.intellagric.common.pojo.LayuiDataGridResult;
import com.intellagric.common.pojo.ResponseMessage;
import com.intellagric.pojo.AgriecomProduceComment;

public interface ProduceCommentService {
    //增加ProduceComment
    ResponseMessage addProduceComment(AgriecomProduceComment produceComment);
    //根据id删除ProduceComment
    ResponseMessage deleteProduceComment(String id);
    //根据id编辑ProduceComment
    ResponseMessage editProduceComment(AgriecomProduceComment produceComment);
    //根据id查询ProduceComment
    AgriecomProduceComment getProduceCommentById(String id);
    //查询全部的ProduceComment
    LayuiDataGridResult getProduceCommentList();

    //分页查询全部的ProduceComment
    LayuiDataGridResult getProduceCommentList(int page, int rows);

    //根据id批量删除Merchant
    ResponseMessage batchDeleteProduceComment(String[] ids);

    LayuiDataGridResult getCommentByKeyword(int page,int limit,String keyword);
}
